package jnpf.ureport.definition;

import jnpf.ureport.model.Column;
import jnpf.univer.sheet.UniverSheetColumnData;
import lombok.Getter;
import lombok.Setter;

import java.util.List;


@Setter
@Getter
public class ColumnDefinition {
    private int columnNumber;
    private int width;
    private boolean hide;
    private UniverSheetColumnData sheetColumnData;

    protected Column newColumn(List<Column> columns) {
        Column col = new Column(columns);
        col.setWidth(width);
        col.setSheetColumnData(sheetColumnData);
        return col;
    }

}
